package com.itheima.chapter10.thread.demo11;
//线程安全问题-----同步方法
public class Demo {
    public static void main(String[] args) {
        MyRunnable mr = new MyRunnable();
        System.out.println("mr:" + mr);

        Thread t1 = new Thread(mr, "窗口一");
        Thread t2 = new Thread(mr, "窗口二");
        Thread t3 = new Thread(mr, "窗口三");
        t1.start();
        t2.start();
        t3.start();

    }
}
